<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

	<table>
			<tr>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">分区号1:↓</label></td>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">分区名:↓</label></td>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">起始地:↓</label></td>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">未选中:↓</label></td>
				<td><label class="contentTitle" style="font-size: 14; color: blue;">起始地:↓</label></td>
			</tr>
			
			<c:forEach items="${IPartition}" var="partition">
				<tr target="sid_user" rel="1">
				<td width="110">
					<input name="i_partition_num" class="required" type="text" size="14" value="${partition.PPartitionNumber }" readonly="readonly"/>
					<c:forEach items="${repeatPartitionNumber}" var="rPNum">
						<c:if test="${partition.PPartitionNumber == rPNum}">
							<font color="red">已存在或重复</font>
						</c:if>
					</c:forEach>
				</td>
				<td width="110">
					<input name="i_partition_name" class="required" type="text" size="14" value="${partition.PPartitionName }"/>
					<c:forEach items="${repeatPartitionName}" var="rPName">
						<c:if test="${partition.PPartitionName == rPName}">
							<font color="red">已存在或重复</font>
						</c:if>
					</c:forEach>
				</td>
				<td width="210">
					<textarea name="iCNumber" class="required" cols="25" rows="6"><c:forEach items="${partitionLines}" var="partitionLine"><c:if test="${partition.PPartitionNumber ==partitionLine.PPartitionNumber }">${partitionLine.clientCountryCode },</c:if></c:forEach></textarea>
				</td>
				<td width="210">
					<textarea id="${partition.PPartitionNumber }" name="i_partition_city_num" cols="25" rows="6"><c:forEach items="${iPartitionLine}" var="partitionLine"><c:if test="${partition.PPartitionNumber ==partitionLine.PPartitionNumber }">${partitionLine.clientCityNumber },</c:if></c:forEach></textarea>
				</td>
				<td width="">
					<a target="dialog" width="440" height="460" href="<%=basePath%>partition_findCity.action?p_Number=${partition.PPartitionNumber }" class="btnEdit" rel="">起始地</a>
				</td>
				<td width="50">
				<button onclick="delIPBtn('${partition.PPartitionNumber }')">删除分区</button>
				<!--  <a target="ajaxTodo" href="/EServer/partition_dellPinE.action?ff=${partition.PPartitionNumber}&PME=mr&EPC=mr&EPD=y" class="btnDel">删除分区</a>-->
				</td>
			</tr>
			</c:forEach>
	</table>